/********************************************************************
Name: Table A5: Effect of Dem Sheriff on Detainer Requests
	per 1,000 Residents
Author: Dan Thompson
Date: August 2019
Notes:
********************************************************************/

* Set the working directory 
gl root = "$sanctuary_root"
gl root = "YOUR_WORKING_DIRECTORY"

* Bring in the panel data
use "$root/data/panel analysis data.dta", clear

* Column 1
reghdfe all_sheriff_per1k_pop dem, a(county_id year) vce(clust county_id)

* Column 2
reghdfe all_sheriff_per1k_pop dem, a(county_id i.year##i.region_id) vce(clust county_id)

* Column 3
reghdfe all_sheriff_per1k_pop dem, a(county_id i.year##i.pop_quartile) vce(clust county_id)

* Column 4
reghdfe all_sheriff_per1k_pop dem, a(county_id i.year##i.pop_quartile##i.region_id) vce(clust county_id)

* Column 5
reghdfe all_sheriff_per1k_pop dem, a(year county_id##c.year) vce(clust county_id)

* Column 6
reghdfe all_sheriff_per1k_pop dem, a(i.year##i.region_id county_id##c.year) vce(clust county_id)

* Column 7
reghdfe all_sheriff_per1k_pop dem, a(i.year##i.pop_quartile county_id##c.year) vce(clust county_id)

* Column 8
reghdfe all_sheriff_per1k_pop dem, a(i.year##i.pop_quartile##i.region_id county_id##c.year) vce(clust county_id)

